<template>
  <div>
    <template v-for="(item,index) in fieldValue">
      <el-button v-bind="item.props" :key="index">{{item.props['value']}}</el-button>
    </template>
  </div>

</template>

<script>
export default {
  props: {
    value: {
        type: Array,
        default() {
          return []
        }
      },
    children: {
        type: Array,
        default() {
          return []
        }
      }
  },
  computed: {
    fieldValue: {
      get() {
        // console.log(this.$attrs,this.children,'--------------')
        return this.children || []
      },
      set(val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>


